package cn.labelnet.android.roomdb

import android.app.Application
import cn.labelnet.android.roomdb.base.data.DbHelper

/**
 * Created by yuan on 02/08/2017.
 * application
 */
class App : Application() {
    override fun onCreate() {
        super.onCreate()
        // 初始化 db
        DbHelper.init(this)
    }

    override fun onTerminate() {
        super.onTerminate()
        DbHelper.INSTANCE!!.onDestory()
    }
}